package com.sip.stream.rxbus;

public final class TagMessage {
    Object mEvent;
    String mTag;

    public TagMessage(Object obj, String str) {
        this.mEvent = obj;
        this.mTag = str;
    }

    public boolean isSameType(Class cls, String str) {
        return Utils.equals(getEventType(), cls) && Utils.equals(this.mTag, str);
    }

    Class getEventType() {
        return Utils.getClassFromObject(this.mEvent);
    }

    public String toString() {
        return "event: " + this.mEvent + ", tag: " + this.mTag;
    }
}
